<template>
    <div>
      <el-button plain size="small" type="primary" icon="el-icon-plus" @click="add" v-if="$auth.checkMenuPermissions('system:department:add')">新增部门</el-button>
      <el-button
        plain
        size="small"
        type="warning"
        icon="el-icon-sort"
        @click="departmentReplicate"
        >折叠部门</el-button
      >
    </div>
  </template>
  
  <script>
  export default {
    methods: {
      add() {
        this.$emit('onOpenDialog')
      },
      departmentReplicate() {
        this.$emit("ondepartmentReplicate");
      },
    },
  };
  </script>
  
  <style scoped lang="scss">
  div {
    margin-left: 30px;
  }
  </style>
  